#region using directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
#endregion

namespace TapiSampleApplication
{
    public partial class Settings : Form
    {
               
        #region Constructors

        public Settings()
        {
           
        }

        public Settings(string folderName)
        {
            InitializeComponent();
            txtFolderPath.Text = folderName;
        }

        #endregion

      
        #region Event Handlers
        
       
        #endregion

        private void btnBrowse_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog folderDialog = new FolderBrowserDialog();
            folderDialog.Description = "Choose folder for log file.";
            folderDialog.ShowNewFolderButton = true;
            if (folderDialog.ShowDialog() == DialogResult.OK)
            {
                txtFolderPath.Text = folderDialog.SelectedPath;
            }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
             this.Close();  
        }

        internal string GetLogFileName()
        {
            return txtFolderPath.Text + "\\" + txtLogFileName.Text;
        }
   }
}